  <?php echo form_tag_for($listInvoiceTermsForm,$listInvoiceTermsForm->getUrl())?>
  <?php echo $listInvoiceTermsForm->renderGlobalErrors()?>
  <?php echo $listInvoiceTermsForm['iden']?>
  <?php echo $listInvoiceTermsForm['_csrf_token']?>
  <table>
    <tbody>
    <tr>
      <th class="field">
        <?php echo $listInvoiceTermsForm['term']->renderLabel()?>
      </th>
      <td class="field">
        <?php echo $listInvoiceTermsForm['term']->renderError()?>
        <?php echo $listInvoiceTermsForm['term']?>
      </td>
      <th class="field">
        <?php echo $listInvoiceTermsForm['days']->renderLabel()?>
      </th>
      <td class="field">
        <?php echo $listInvoiceTermsForm['days']->renderError()?>
        <?php echo $listInvoiceTermsForm['days']?>
      </td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
      <td class="form_buttons" colspan="4">
        <input type="submit" value="Save"/>
        <?php if(! $listInvoiceTermsForm->isNew()):?>
          | 
          <?php 
            echo 
              button_to(
                'Reset',
                'invoice_terms/edit?iden='.$listInvoiceTermsForm->getObject()->getIden()
              );
          ?>
          | 
          <?php 
            echo 
              button_to(
                'Delete',
                $listInvoiceTermsForm->getDeleteUrl(),
                array(
                  'confirm'=>'Are you sure to delete, '.$listInvoiceTermsForm->getObject()->getTerm(),
                )
              );
          ?>
        <?php endif;?>
        | 
        <?php 
          echo 
            button_to(
              'Cancel',
              'invoice_terms/index'
            );
        ?>
      </td>
    </tr>
    </tfoot>
  </table>
</form>